package com.xp.agent.dto;

import java.util.concurrent.ConcurrentHashMap;

import com.xp.agent.common.Item;

public class ConfigDto {
	private ConcurrentHashMap<String, Long> configMap = new ConcurrentHashMap<String, Long>();
	public static ConfigDto instance = new ConfigDto();

	private ConfigDto() {
		configMap.put(Item.GCCount.getItemName(), Item.GCCount.getItemValue());
		configMap.put(Item.GCTime.getItemName(), Item.GCTime.getItemValue());

	}

	public void setPro(String key, Long value) {
		configMap.put(key, value);
	}

	public long getPro(String key) {
		return configMap.get(key);
	}
}
